﻿function highlightFor(id, color, seconds) {
    var element = document.getElementById(id)
    var origcolor = element.style.backgroundColor
    element.style.backgroundColor = color;
    var t = setTimeout(function () {
        element.style.backgroundColor = origcolor;
    }, (seconds * 1000));
}

function ShowValidationMessage(controlId, message) {
    alert(message);
    highlightFor(controlId, "#ffffcc", 1);
}